package com.tengfei;

import java.util.Date;

/**
 * @version v1.0
 * @author} feige
 * @date 2021-10-24-22:35
 * @description
 */
public class ResponseJson {

    private Boolean success;

    private String code;

    private String message;

    private Student data;

    public ResponseJson() {
    }

    public ResponseJson(Boolean success, String code, String message, Student data) {
        this.success = success;
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Student getData() {
        return data;
    }

    public void setData(Student data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseJson{" +
                "success=" + success +
                ", code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", student=" + data +
                '}';
    }

    class Student {
        // 学号 (主键)
        private String stuNum;
        // 学生姓名
        private String stuName;
        // UID
        private String uid;
        // 电话号码
        private String phone;
        // 学院名
        private String insName;
        // 班级名
        private String className;
        // 性别 0:女 1:男
        private int sex;
        // 注册时间
        private Date regTime;
        // 密码
        private String password;

        public Student() {
        }

        public Student(String stuNum, String password) {
            this.stuNum = stuNum;
            this.password = password;
        }

        public Student(String stuNum, String stuName, String uid, String phone, String insName, String className, int sex, Date regTime) {
            this.stuNum = stuNum;
            this.stuName = stuName;
            this.uid = uid;
            this.phone = phone;
            this.insName = insName;
            this.className = className;
            this.sex = sex;
            this.regTime = regTime;
        }


        public String getStuNum() {
            return stuNum;
        }

        public void setStuNum(String stuNum) {
            this.stuNum = stuNum;
        }

        public String getStuName() {
            return stuName;
        }

        public void setStuName(String stuName) {
            this.stuName = stuName;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getInsName() {
            return insName;
        }

        public void setInsName(String insName) {
            this.insName = insName;
        }

        public String getClassName() {
            return className;
        }

        public void setClassName(String className) {
            this.className = className;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public Date getRegTime() {
            return regTime;
        }

        public void setRegTime(Date regTime) {
            this.regTime = regTime;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        @Override
        public String toString() {
            return "Student{" +
                    "stuNum=" + stuNum +
                    ", stuName='" + stuName + '\'' +
                    ", uid='" + uid + '\'' +
                    ", phone='" + phone + '\'' +
                    ", insName='" + insName + '\'' +
                    ", className='" + className + '\'' +
                    ", sex=" + sex +
                    ", regTime='" + regTime + '\'' +
                    ", password='" + password + '\'' +
                    '}';
        }
    }
}
